package com.cimr.comm.service;

import com.cimr.comm.bo.MenuBo;

import java.util.List;

/**
 * 菜单
 * Created by liqi on 2017/12/20.
 * liqiwork@qq.com
 */
public interface MenuService {
    List<MenuBo> getMenuList();
    List<MenuBo> getMenuListByCurrUser();
    List<MenuBo> getMenuListByUserId(String userId);
    List<MenuBo> getMenuListByUsername(String userId);
    List<MenuBo> getMenuListByRoleId(String roleId);
    List<MenuBo> getMenuListByKey(String menuKey);

    MenuBo getMenuById(String id);
    List<MenuBo> getMenuListWithName(String menuName);

    int insertMenu(String id,
                          String menuKey,
                          String menuName,
                          String parentId,
                          Integer level,
                          String comment,
                          Float orderId,
                          String target,
                          String href);

    int updateMenu(String id,
                          String menuKey,
                          String menuName,
                          String parentId,
                          Integer level,
                          String comment,
                          Float orderId,
                          String target,
                          String href);

    int deleteMenuById(String id);

    int deleteMenuListByParentId(String parentId);
}
